<!-- div id="header">
<div class="header">
<h1><img title="{$_G['settings']['sitename']}" alt="{$_G['settings']['sitename']}" src="static/images/logo.gif"></h1>
<div class="hsearch">

<form method="get" action="list.php" id="searchForm" name="searchForm">
<input type="text" style="color:#666" size="50" class="input" autocomplete="off" onfocus="search(this)" onblur="unsearch(this)" value="输入要搜索的地区，店铺，菜名" name="key" id="key">
<span class="isbtn" href="javascript:;" onclick="formsearch()">搜外卖</span>
<p class="hotsearch">热门搜索:<a href="list.php?region=21">南大街</a><a href="list.php?region=11" >文化宫</a></p>
</form>

<div class="haddr">
<span></span> &nbsp;&nbsp; <span><a href="help">帮助？</a></span>
</div>
</div>


<script type="text/javascript">
function search(obj){
	if(obj.value=='输入要搜索的地区，店铺，菜名'){
		obj.value='';
	}
}
function formsearch(obj){
	if($('#key').val()=='输入要搜索的地区，店铺，菜名'){
		$('#key').val('');
	}
	if($('#key').val()==''){
		$('#key').focus();
		return false;
	}
	document.searchForm.submit();
}
function unsearch(obj){
	if(obj.value==''){
		obj.value='输入要搜索的地区，店铺，菜名';
	}
}
</script>


			

</div>
<div class="menu"> 
<ul class="nav" style="display:none;"> 
			<li><a href="{BASE_URL}" class="current" >首页</a></li>
				{loop $cates $cate}
				{if $cate['status'] && !ican('view_hidden_category')}
				{php continue;}
				{/if}
				{if isset($type)}
				{if $cate['type']!=$type}
				{php continue;}
				{/if}
				{elseif $cate['type'] !=0}
				{php continue;}
				{/if} 
				 <li><a href="category.php?id={$cate['cid']}">{$cate['catename']}</a></li>
				 {/loop}    
			</ul>

</div>
</div -->